using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class webadmin_pages_tuyendung_detail : System.Web.UI.Page
{
    protected objViecLamTrong vltObj = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString.Get("id");
            if (!string.IsNullOrEmpty(id))
            {
                vltObj = new objViecLamTrong();
                vltObj = ViecLamTrong.getViecLamTrong(id);
                showVLT();
            }
        }
    }

    protected void showVLT()
    {
        ViecLamTrong vltr = new ViecLamTrong();
        lbma.Text = vltObj.ma_ho_so;
        lbtieude.Text = vltObj.tieu_de_ho_so;
        lbvitri.Text = vltObj.vi_tri_tuyen_dung;
        lbchucvu.Text = vltr.getTenChucDanh(vltObj.ma_chuc_danh);
        for (int i = 0; i < vltObj.listYeuCauChuyenMon.Count; i++)
        {
            lbhocvan.Text += vltr.getTenHocVan(vltObj.listYeuCauChuyenMon[i].ma_hoc_van) + ",";
            lbchuyenmon.Text += vltr.getTenHocVan(vltObj.listYeuCauChuyenMon[i].ma_chuyen_mon) + ",";
        }
        lbmotacongviec.Text = vltObj.mo_ta;
    }
}
